"""web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import views

urlpatterns = [
    # 首页
    url(r'^$',views.index,name="index"),
    url(r'^newindex$',views.newindex,name="newindex"),
    # 列表
    url(r'^lists/(?P<tid>[0-9]+)$',views.lists,name="lists"),
    # 详情
    url(r'^goods/(?P<tid>[0-9]+)$',views.goods,name="goods"),
     # 登录
    url(r'^login/$',views.login,name="login"),
    # 注册
    url(r'^register$',views.register,name="register"),
    url(r'^doregister$',views.doregister,name="doregister"),
    url(r'^dealregister$',views.dealregister,name="dealregister"),
   




    url(r'^cartadd$',views.cartadd,name="cartadd"),
    url(r'^cartindex$',views.cartindex,name="cartindex"),
    url(r'^cartedit$',views.cartedit,name="cartedit"),
    url(r'^cartdel$',views.cartdel,name="cartdel"),
    url(r'^orderadd$',views.orderadd,name="orderadd"),
    url(r'^ordercreate$',views.ordercreate,name="ordercreate"),
    url(r'^buy/(?P<oid>[0-9]+)$',views.buy,name="buy"),
    url(r'^myorder$',views.myorder,name="myorder"),
    url(r'^pay$',views.pay,name="pay"),
    url(r'^member$',views.member,name="member"),
    url(r'^infoedit/(?P<id>[0-9]+)$',views.infoedit,name="infoedit"),
    url(r'^userinfoupdate$',views.userinfoupdate,name="userinfoupdate"),
    
   
]